{% extends 'layout.html' %}

{% block body %}
<div class="container content">
<div class="card bg-light" style="width:600px;margin:auto">
<article class="card-body mx-auto" style="width:400px">
	<h4 class="card-title mt-3 text-center">用户注册</h4>
    {% from "includes/_formhelpers.html" import render_field %}
    <form method="POST" action="">
      <div class="form-group">
        {{render_field(form.email, class_="form-control")}}
      </div>
      <div class="form-group">
        {{render_field(form.username, class_="form-control")}}
      </div>
      <div class="form-group">
        {{render_field(form.password, class_="form-control")}}
      </div>
      <div class="form-group">
        {{render_field(form.confirm, class_="form-control")}}
      </div>
      <div class="form-group">
        <button type="submit" class="btn btn-primary btn-block"> 注册 </button>
      </div>
      <p class="text-center">已有账号? <a href="/login">去登录</a> </p>
    </form>
</article>
</div>
</div>
{% endblock %}
